- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action- your default shell should already be selected, otherwise use
/bin/zsh
for macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
Discover gists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Add Monaco Editor to input fields | |
// @namespace Violentmonkey Scripts | |
// @match https://gitlab.org/* | |
// @grant none | |
// @version 1.0 | |
// @author Daniil Babanin & CHATGPT4o | |
// @description Replace a specific textarea with Monaco Editor | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script is meant to be run as root at boot via cron | |
# add "@reboot /root/erspan.sh" to crontab -e | |
# you can have multiple scripts for multiple tunnels | |
# This will allow you to set up a Erspan v1 tunnel and mirror all traffic from interface x to the erspan | |
# Author: Steven Myers samyers911@gmail.com | |
######Configure##### | |
#Direction ingress=port to erspan, egress= erspan to port | |
direction=ingress |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openapi: 3.0.0 | |
info: | |
title: Notion API | |
description: API for interacting with Notion resources such as pages and databases. | |
version: 1.0.0 | |
servers: | |
- url: https://api.notion.com/v1 | |
description: Main API server | |
paths: | |
/pages/{page_id}: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# | |
# Script to notify user for new mails. | |
# Crontab ex: | |
# */3 * * * * $HOME/.local/scripts/mbsync-notify.sh [acc_name] | |
# | |
# do not duplicate | |
killall mbsync &>/dev/null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There are I would say 4 main steps: | |
1. Setup Linux to build | |
2. Download the ROM source | |
3. Download and configure the device trees for the ROM | |
4. Build the ROM | |
Step 1. Setup Linux to build | |
Taken from here: https://github.com/nathanchance/Android-Tools/blob/master/Guides/Building_AOSP.txt |
aka what i did to get from nothing to done.
note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All of these links are 100% official (as you can tell). They will only work for accounts that didn't have Nitro in past year. | |
Unfortunately I'm not sure about the expiration date of any of these links. | |
Even more available exclusively here: https://maciejka.mysellix.io/ | |
https://discord.com/billing/partner-promotions/1180231712274387115/eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..TklCEXrKns6hgS0T.TwMOCcawqEjgPN4uC1CqKKMRfaS3nFAtTijguZJF8jEsFaE02X5XWt_gJFhfTIuye7v3k2YrQZ4Lv8iU2v12ZH2_lDMhyJGspzn8yLwY3THQe87b2BY3rj1lq7-7DhS_-qENXpoiNPYmVhq030dJcGpCETxC0ZRX77XcFf5rHuGJXoF2yDCt0oUmiYPDOWHi9Qaim0fL-yuYIUH9vxns5UsYgTRfy1sMFBzwek4fg68R_8-RCWr775dR-z2YV7VL5wudHyuImF9T-7o3Cs3AV5I.sZ29i4HMWwoa4hbYMA7VpA | |
https://discord.com/billing/partner-promotions/1180231712274387115/eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..nWV0R2Xx-wbaMU3n.dOemmuvPqg9okGPtfC_efYxYz7oj7niwLR-LxhiggQNs7_M9_Qn3SmaNGijUPrWteLIiEvzez_FxYlHKKsrdB0SKSnJKLoUAykYMxu7ECLa5r2Sx_Ak2ZtGe1nsYoEXASCNImKLpdpK6-5f6F99GrS6MUUJHVkT3V4yV9ElyQzkZ4zXk0pdQsIVyl-B5nq_Vz6em_l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SomeApp | |
class Application < Rails::Application | |
config.active_record.schema_format = :sql | |
config.generators do |generator| | |
generator.orm :active_record, primary_key_type: :ulid | |
end | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Playground - noun: a place where people can play | |
/// I am the very model of a modern Judgement General | |
//: # Algorithm W | |
//: In this playground we develop a complete implementation of the classic | |
//: algorithm W for Hindley-Milner polymorphic type inference in Swift. | |
//: ## Introduction |
NewerOlder